import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/list_jx_org_by_pid_entity.dart';

ListJxOrgByPidEntity $ListJxOrgByPidEntityFromJson(Map<String, dynamic> json) {
	final ListJxOrgByPidEntity listJxOrgByPidEntity = ListJxOrgByPidEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		listJxOrgByPidEntity.id = id;
	}
	final String? pid = jsonConvert.convert<String>(json['pid']);
	if (pid != null) {
		listJxOrgByPidEntity.pid = pid;
	}
	final String? orgCode = jsonConvert.convert<String>(json['orgCode']);
	if (orgCode != null) {
		listJxOrgByPidEntity.orgCode = orgCode;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		listJxOrgByPidEntity.orgName = orgName;
	}
	final String? orgAlias = jsonConvert.convert<String>(json['orgAlias']);
	if (orgAlias != null) {
		listJxOrgByPidEntity.orgAlias = orgAlias;
	}
	final String? orgAddress = jsonConvert.convert<String>(json['orgAddress']);
	if (orgAddress != null) {
		listJxOrgByPidEntity.orgAddress = orgAddress;
	}
	final String? orgType = jsonConvert.convert<String>(json['orgType']);
	if (orgType != null) {
		listJxOrgByPidEntity.orgType = orgType;
	}
	final String? districtCode = jsonConvert.convert<String>(json['districtCode']);
	if (districtCode != null) {
		listJxOrgByPidEntity.districtCode = districtCode;
	}
	final String? districtLevel = jsonConvert.convert<String>(json['districtLevel']);
	if (districtLevel != null) {
		listJxOrgByPidEntity.districtLevel = districtLevel;
	}
	final String? operateId = jsonConvert.convert<String>(json['operateId']);
	if (operateId != null) {
		listJxOrgByPidEntity.operateId = operateId;
	}
	final int? status = jsonConvert.convert<int>(json['status']);
	if (status != null) {
		listJxOrgByPidEntity.status = status;
	}
	final int? orderby = jsonConvert.convert<int>(json['orderby']);
	if (orderby != null) {
		listJxOrgByPidEntity.orderby = orderby;
	}
	final String? orgFunction = jsonConvert.convert<String>(json['orgFunction']);
	if (orgFunction != null) {
		listJxOrgByPidEntity.orgFunction = orgFunction;
	}
	final int? isValid = jsonConvert.convert<int>(json['isValid']);
	if (isValid != null) {
		listJxOrgByPidEntity.isValid = isValid;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		listJxOrgByPidEntity.createTime = createTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		listJxOrgByPidEntity.updateTime = updateTime;
	}
	final dynamic? ext1 = jsonConvert.convert<dynamic>(json['ext1']);
	if (ext1 != null) {
		listJxOrgByPidEntity.ext1 = ext1;
	}
	final dynamic? ext2 = jsonConvert.convert<dynamic>(json['ext2']);
	if (ext2 != null) {
		listJxOrgByPidEntity.ext2 = ext2;
	}
	final dynamic? ext3 = jsonConvert.convert<dynamic>(json['ext3']);
	if (ext3 != null) {
		listJxOrgByPidEntity.ext3 = ext3;
	}
	final String? tenantId = jsonConvert.convert<String>(json['tenantId']);
	if (tenantId != null) {
		listJxOrgByPidEntity.tenantId = tenantId;
	}
	final int? isGroup = jsonConvert.convert<int>(json['isGroup']);
	if (isGroup != null) {
		listJxOrgByPidEntity.isGroup = isGroup;
	}
	return listJxOrgByPidEntity;
}

Map<String, dynamic> $ListJxOrgByPidEntityToJson(ListJxOrgByPidEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['pid'] = entity.pid;
	data['orgCode'] = entity.orgCode;
	data['orgName'] = entity.orgName;
	data['orgAlias'] = entity.orgAlias;
	data['orgAddress'] = entity.orgAddress;
	data['orgType'] = entity.orgType;
	data['districtCode'] = entity.districtCode;
	data['districtLevel'] = entity.districtLevel;
	data['operateId'] = entity.operateId;
	data['status'] = entity.status;
	data['orderby'] = entity.orderby;
	data['orgFunction'] = entity.orgFunction;
	data['isValid'] = entity.isValid;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['ext1'] = entity.ext1;
	data['ext2'] = entity.ext2;
	data['ext3'] = entity.ext3;
	data['tenantId'] = entity.tenantId;
	data['isGroup'] = entity.isGroup;
	return data;
}